<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>SIGEN - Sistema de Gerenciamento de Ensino Nacional</title>
		<script type="text/javascript" src="tela/disciplinar/elogio.js" ></script>
		<link rel="stylesheet" type="text/css" href="tela/disciplinar/elogio.css" ></link>
	</head>
	<body>
<%--     <input name="encoded" id="encoded" type="hidden" value="<%=new EncodeJsUtil().encode((getServletContext().getRealPath("").replace('\\', '/').replace(request.getContextPath(), "")+request.getRequestURI()).replace(".jsp", ".js").trim())%>" > --%>
			<!-- FORMULARIO -->
			<div id="subtitulo"><h3 class="ui-widget-header">Elogios</h3></div>
			<div id="formWrapper" class="centered">
				<form id="cadastro_elogio" action="#" onSubmit="return false;" method="post">
					<ul class="controls">
						<li style="width: 15%;"><label>Data Registro</label><input type="hidden" name="id" id="id"><input type="hidden" name="version" id="version"><input type="text" id="dataRegistro" class="field" style="width: 80%"/></li>
						<li style="width: 30%;"><label for="elogioTipo">Tipo Elogio:</label><select name="elogioTipo[id]" id="elogioTipo" class="field validate[required]" style="width: 100%;"></select></li>
						<li style="width: 15%;"><label>Valor</label><input type="text" name="elogioTipo[valor]" id="valorElogio" readonly="readonly" class="field" style="width: 99%"/></li>
						<li style="width: 15%;"><label>Referência</label><input type="text" name="referencia" id="referencia" class="field" style="width: 99%"/></li>
						<li style="width: 100%;"><label>Descrição</label><textarea type="text" name="descricao" id="descricao"  class="field" rows="3" cols="80" style="width: 99%"></textarea></li>
						
						<li>
							<button type="button" class="headerTextBtn" id="btnGravar" onclick="gravaElogio();" >Gravar</button>
							<button type="button" class="headerTextBtn" id="btnExcluir" onclick="excluir();" >Excluir</button>
							<button type="button" class="headerTextBtn" id="btnNovo" onclick="limparElogio();" >Novo</button>
						</li>						
						
						<li>
							<table cellspacing="0" class="display" cellpadding="0" border="0" id="elogiosDataGrid"></table>
						</li>

					</ul>
				</form>
			</div>
		
<!-- 		<!-- MODAL POPUP -->
		<div id="modalPopup" title=" ">
			<span id="dialogMessage" ></span>
		</div>
	
	</body>
</html>
	
